import request from '@/utils/request';

/**
 * 首页统计
 * @param query 
 * @returns 
 */


// 统计订单信息
export const orderCount = (query) => {
  return request({
    url: '/statistics/order',
    method: 'get',
    params: query
  });
};

// 统计商品信息
export const goodsCount = (query) => {
  return request({
    url: '/statistics/goods',
    method: 'get',
    params: query
  });
};